package org.nci.uRunking.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.nci.uRunking.dao.IUserDAO;
import org.nci.uRunking.model.User;
import org.nci.uRunking.service.IUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("userService")
@Transactional
public class UserService implements IUserService {
	@Resource(name="userDAO")
	private IUserDAO userDAO;
	
	public void setUserDAO(IUserDAO userDAO) {
		this.userDAO = userDAO;
	}


	public List<User> query() {
		return userDAO.query();
	}
	
}
